<?php

/*

  Action	$6 + 1 potion

  The player to your left takes an extra turn after this one,
  in which you can see all cards he can and make all decisions for him.
  Any cards he would gain on that turn, you gain instead; any cards of his
  that are trashed are set aside and returned to his discard pile at end of turn.

 */

class Possession extends Card implements iAction, iKingdom, iAlchemy {

    public function __construct() {
        $price = new Price(6, 1);
        parent::__construct("Possession", $price);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "The player to your left takes an extra turn after this one,  in which you can see all cards he can and make all decisions for him.  Any cards he would gain on that turn, you gain instead; any cards of his  that are trashed are set aside and returned to his discard pile at end of turn.");
    }

    public function isImplemented() {
        return false;
    }

    public function play(Game $game, $isRealCard) {

        $game->addPossessedTurn();
        $game->cardActionFinished();
        return true;
    }

    public function boardSetup(Game $game) {
        $game->addPotion();
        return true;
    }

}

?>